﻿#region summary
// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.
#endregion

using System.Collections.Generic;
using System.Linq;
using NSQL.Sharpen;

namespace NSQL.Statements
{
    public class SelectElementCollection : ElementCollection<SelectElement>, IDeepClone
    {
        public bool IsDistinct { get; set; } = false;
        public SelectElementCollection()
        {
        }
        public SelectElementCollection(IEnumerable<SelectElement> elements): base(elements)
        {
        }

        object IDeepClone.DeepCopy()
        {
            return new SelectElementCollection(this.Select(o => o.DeepClone()));
        }
    }
}